package day3;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Quiz {
    public static void main(String[] args) {
        //do while的便捷
        Scanner in = new Scanner(System.in);
        String answer = "";
        do {
            System.out.println("做了一套测试题");
            System.out.println("老师来检查。合格了？");
            answer = in.next();
        } while (!answer.equals("合格"));
        System.out.println("下课回家");
    }
}
